# -*- coding: utf-8 -*-

"""
  @author: tangliqi
  @date: 2024/1/12 17:50
  @python version: 3.6
  @contact me: 110
  ---------------------------------------
  @desc: backend => serializers.py
"""
from .models import Dashboard
from dvadmin.utils.serializers import CustomModelSerializer


class DashboardModelSerializer(CustomModelSerializer):
    """
    序列化器
    """

    class Meta:
        model = Dashboard
        fields = "__all__"


class DashboardCreateUpdateSerializer(CustomModelSerializer):
    """
    创建/更新时的列化器
    """

    class Meta:
        model = Dashboard
        fields = '__all__'
